Qt 5.14 deprecated the explicit functions for converting between
QSet and QList, preferring instead the use of range-based ctors.
Unfortunately, those ctors were only added in Qt 5.14, so we can't
use them when compiling against older versions.
Add a util function for QList->QSet to keep the version check in
a single place. Replace the other direction by using QSet::values().
In some cases, conversions could be avoided altogether, or an STL
container be used easily, so do that.
Gbp-Pq: Topic qt514
Gbp-Pq: Name 0004-qa-Avoid-deprecation-warnings-for-QList-QSet-convers.patch
In some places, we would explicitly give the type to
QVariant::fromValue(), forgoing automatic type deduction. This is
almost always redundant, and in the cases where it is not, the
input type should be explicitly cast.
Additionally, the implementation of QVariant::fromValue() subtly changed
in Qt 5.14, leading to compile errors when giving a non-decayed type
(as we did in SignalProxy::attachSignal()).
Gbp-Pq: Topic qt514
Gbp-Pq: Name 0002-common-Always-let-QVariant-fromValue-deduce-the-type.patch
Starting from version 5.14, Qt provides stream operators for enum
types, which collide with the ones we ship in types.h. Disable
Quassel's stream operators when compiling against Qt 5.14 or later.
Add a unit test that ensures that enum serialization honors the width
of the underlying type.
Gbp-Pq: Topic qt514
Gbp-Pq: Name 0001-common-Disable-enum-type-stream-operators-for-Qt-5.1.patch
Felix Geyer [Mon, 13 Jul 2020 21:13:31 +0000 (22:13 +0100)]
quassel (1:0.13.1-4) unstable; urgency=medium
[ Scott Kitterman ]
* Add explicit build-depeds on debhelper (>= 10.3~) since we use dh_missing
* Bump standards-version to 4.5.0 without further change
* Add Recommends: ca-certificates to quassel and quassel-client so network
certificates can be verified
[ Felix Geyer ]
* Add patches to fix building against Qt 5.14 from Ubuntu.
Thanks Dan Streetman! (Closes: #964687)